package com.calvin.study.observer.observer.impl;

import org.springframework.stereotype.Component;

import com.calvin.study.observer.observer.IObserver;
import com.google.common.eventbus.Subscribe;

@Component
public class ConcreteObserverOne implements IObserver {
	
	@Override
	@Subscribe //eventBus 会根据该注解找到方法，将方法能接收到的消息类型记录下来
	public void update(String message) {
		System.out.println(message+"程队收到消息，实施抓捕");
	}

}
